-- GENERATED SPELL FOR [Caverndeep Burrower] --


function spell0_6206(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_6206', 603, 1)
end

function spell1_6206(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(7405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6206', 648, 1)
end

function Sorts_6206(pUnit, Event)
local choix_sorts_6206 = math.random(0, 1)
if choix_sorts_6206 == 0 then
pUnit:RegisterEvent('spell0_6206', 1, 1)
end
if choix_sorts_6206 == 1 then
pUnit:RegisterEvent('spell1_6206', 1, 1)
end
end

function mob6206_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6206', math.random(1500, 3000), 1)
end

function mob6206_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6206_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6206_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6206, 1, 'mob6206_Action')
RegisterUnitEvent(6206, 2, 'mob6206_Leave')
RegisterUnitEvent(6206, 3, 'mob6206_Kill')
RegisterUnitEvent(6206, 4, 'mob6206_Die')
